package com.rdxer.repository;

import com.rdxer.model.Paper;
import com.rdxer.model.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface PaperRepository extends JpaRepository<Paper,String>,JpaSpecificationExecutor<Paper>{
    List<Paper> findAllByCourseIdAndAndState(String courseId,String state);

    List<Paper> findAllByUserId(String userId);

}
